﻿#ifndef USERFORM_H
#define USERFORM_H

#include <QSqlQueryModel>
#include <QWidget>
#include <dbutil.h>
#include "userdialog.h"

namespace Ui {
class UserForm;
}

class UserForm : public QWidget
{
    Q_OBJECT

public:
    explicit UserForm(QWidget *parent = nullptr);
    ~UserForm();

public slots:
    void init();

private slots:
    void on_add();
    void on_edit();
    void on_delete();

private:
    Ui::UserForm *ui;
    QSqlQueryModel *m_pSqlQueryModel;
};

#endif // USERFORM_H
